package day10.ObjectStream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Test2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        /*
        f6文件中读取序列化数据
        反序列化对象
        f5 -- FIS -- OIS
         */
        ObjectInputStream in = new ObjectInputStream(new FileInputStream("/Users/hao/Desktop/abc/f6"));
        Student stu = (Student) in.readObject();
        System.out.println(stu.toString());
        in.close();
    }
}
